package com.yihukurama.sysbase.sysservice;


import com.yihukurama.base.app.exception.TipsException;
import com.yihukurama.base.framework.web.dto.Request;
import com.yihukurama.base.framework.web.dto.Result;
import com.yihukurama.sysbase.framework.domain.User;

import javax.servlet.http.HttpServletRequest;

/**
 * 说明： 公共api
 * @Author yihukurama
 * @date: Created in 16:56 2023/12/11
 * @modified: by yihukurama in 16:56 2023/12/11
 */
public interface IPublicApi {


    /**
     * 说明： 登录
     * @Author yihukurama
     * @date Created in 9:51 2023/2/5
     *       Modified by yihukurama in 9:51 2023/2/5
     */
    Result login(Request<User> request, HttpServletRequest httpRequest) throws TipsException;

    /**
     * 说明： 判断是否已登录
     * @Author yihukurama
     * @date Created in 17:00 2023/2/4
     *       Modified by yihukurama in 17:00 2023/2/4
     */
    Result isLogin(Request<User> request);

}
